package com.yuan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * Nacos 启动类
 * @Author yuan
 * @Date 2021/9/10 16:42
*/
@SpringBootApplication(scanBasePackages = "com.alibaba.nacos")
@ServletComponentScan
public class NacosApplication
{
    /**
     * 是否单机模式启动,默认集群启动
     */
    private static String standalone = "true";
    public static void main( String[] args )
    {
        System.setProperty("nacos.standalone", standalone);
        SpringApplication.run(NacosApplication.class, args);
    }
}
